package message;

import static org.junit.Assert.*;

import message.PingServerResponseMessage.ServerStatus;

import org.junit.Test;

public class PingServerResponseMessageTest
{

	@Test
	public void testSetStatus()
	{
		PingServerResponseMessage message1 = new PingServerResponseMessage();
		PingServerResponseMessage message2 = new PingServerResponseMessage();
		
		message1.setStatus(ServerStatus.Initiating);
		message2.setStatus(ServerStatus.Initiating);
		message2.setStatus(ServerStatus.Running);
		
		assertEquals(message1, message2);
	}

	@Test
	public void testSetTimeIntiated()
	{
		PingServerResponseMessage message1 = new PingServerResponseMessage();
		PingServerResponseMessage message2 = new PingServerResponseMessage();
		
		message1.setTimeIntiated(0);
		message2.setTimeIntiated(0);
		message2.setTimeIntiated(1);
		
		assertEquals(message1, message2);
	}

}
